package com.xiaoma.thread.wait.productcustomer;

/**
 * @author maj
 * @ClassName Producer
 * @Description
 * @date 2020-09-12 13:54
 */
public class Producer implements Runnable{

  private SynStack ss = null;
  public Producer(SynStack ss)
  {
    this.ss = ss;
  }

  public void run() {
    char ch;
    for (int i = 0; i < 10; ++i) {
      ch = (char) ('a' + i);
      ss.push(ch);
    }
  }
  }
